package com.chinaoly.baotou.feign;

import com.chinaoly.frm.core.entity.Result;
import com.chinaoly.baotou.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 系统管理
 *
 * @author
 * @date 2020-12-09 10:43:39
 */
@FeignClient(
        name = "${feign.application.xtgl.name:YYCP-SECURITY-SERVICE}"
        , url = "${feign.application.xtgl.url:http://172.16.100.91:7080}"
        , configuration = FeignConfig.class
        , fallbackFactory = XtglHystrixFactory.class
        , primary = false
)
public interface XtglFeignClient {

    /**
     * 可根据字典类型查询全部字典列表
     *
     * @param dictType
     * @return
     */
    @GetMapping("/dict/queryListByDictType")
    Result queryListByDictType(@RequestParam(value = "dictType") String dictType);
}